FROM rcornu/java:8-jre-alpine

ENV PORT 18080

ADD target/JrebelBrainsLicenseServer.jar /JrebelBrains.jar
CMD java -jar /JrebelBrains.jar -p $PORT

# 新增：声明容器内需要暴露的端口
EXPOSE $PORT

# docker build -t jrebel_license_server:v1 .